import request from '@/utils/request'

//查询产品优势
export function getProductSuperiority(){
  return request({
    url:"super/SuperProductSuperiorityController/getSuperiority",
    method: "get"
  })
}

//添加产品优势
export function addProductSuperiority(productSuperiority){
  return request({
    url: "super/SuperProductSuperiorityController/addProductSuperiority",
    method: "post",
    data: productSuperiority
  })
}

//修改产品优势
export function updateProductSuperiority(superiorityId,superiorityState) {
  const data = {
    superiorityId,
    superiorityState
  }
  return request({
    url: "super/SuperProductSuperiorityController/updateProductSuperiority",
    method: "put",
    data: data
  })
}

//根据产品id删除产品
export function deleteProductSuperiority(superiorityId) {
  return request({
    url: "super/SuperProductSuperiorityController/deleteProductSuperiority/"+superiorityId,
    method:"delete",

  })
}
